<extend name="./Application/Admin/View/Index/index.html"/>

<block name="box">
    <div class="view-product">
        <div class="info-center">
            <div class="manage-head">
                <h6 class="padding-left manage-head-con">团购列表</h6>
            </div>
            <div class="offcial-table input-table table-margin clearfix">
                <if condition="$list eq null">
                    <div class="tr non-info show border-bottom-none">
                        <span>没查询到符合条件的记录</span>
                    </div>
                    <else />
                    <table class="table text-center">
                        <tr>
                            <th class="text-center" style="width: 10px">ID</th>
                            <th class="text-center">商品名</th>
                            <th class="text-center">团购价格</th>
                            <th class="text-center">原价</th>
                            <th class="text-center">限购数量</th>
                            <th class="text-center">成团人数</th>
                            <!--<th class="text-center">已被领取</th>-->
                            <!--<th class="text-center">最低使用金额</th>-->
                            <th class="text-center">开启团购</th>
                            <!--<th class="text-center">优惠</th>-->
                            <th class="text-center" style="width: 150px;">开始时间</th>
                            <th class="text-center"style="width: 150px;">过期时间</th>
                            <!--<th class="text-center">是否失效</th>-->
                            <th class="text-center">操作</th>

                        </tr>
                        <foreach  name="list" item="vo" key="k">
                            <tr>
                                <td>{{$vo.sid}}</td>
                                <td>{{$vo.gname}}</td>
                                <td>¥{{$vo.gprice}}</td>
                                <td>¥{{$vo.price}}</td>
                                <td>{{$vo.limit_num}}</td>
                                <td>{{$vo.user_num}}</td>
                                <!--<td>{{$vo.receive_num}}</td>&lt;!&ndash;已被领取数量&ndash;&gt;-->
                                <!--<td>¥{{$vo.min_pri}}</td>-->
                                <td><a href="{{:U('Coupon/is_open',array('id'=>$vo['id'],'sub'=>$vo['is_open']))}}">{{$vo['g_is_show']==0?'<i class="layui-icon">&#x1006;</i>':'<i class="layui-icon">&#xe605;</i>'}}</a></td>
                                <!--<td>积分总数</td>-->
                                <td>{{$vo.begin_time}}</td>
                                <td>{{$vo.end_time}}</td>
                                <!--<td>{{$vo['is_lose']==0?'过期':'未过期'}}</td>-->
                                <td>
                                    <a class="layui-btn layui-btn-danger layui-btn-sm" href="{{:U('Group/del',array('id'=>$vo['sid']))}}">删除</a>
                                </td>

                            </tr>
                        </foreach>
                    </table>
                    <div class="row center-block">
                        <div class="layui-col-md5 layui-col-md-offset5">
                            {{$page}}
                        </div>
                    </div>

                </if>

            </div>
        </div>
        <div class="show-page padding-big-right hidden">
            <div class="page">
            </div>
        </div>
    </div>

</block>
